﻿#region Copyright Info

// 
// Majesty of Omega - The next evolution of macro management space strategy
// 
// Copyright 2007-2009 André Claaßen
// 
// This file is protected by the terms and conditions of the
// Microsoft Community License (Ms-CL 1.1), a copy of which should
// have been distributed along with this software. If not,
// you may find the license information at the following URL:
// 
// http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx

#endregion

#region

using System.Windows.Controls;
using Majesty_of_Omega.Logic.GameConfiguration;

#endregion

namespace Majesty_of_Omega.GUI.Pages.Setup
{
    /// <summary>
    /// This Page implements Step 1 in a new Majesty of Omega SaveGame: 
    /// The player choose a race
    /// </summary>
    public partial class Step1_ChooseRacePage
    {
        /// <summary>
        /// Constructor for the choose race page 
        /// </summary>
        public Step1_ChooseRacePage()
        {
            InitializeComponent();
            LayoutRoot.DataContext = GameConfigurator.GameSettings;
        }

        private void SpeciesList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            RaceListListBox.SelectedValue = GameConfigurator.GameSettings.SelectedRace;
        }
    }
}